<?php
	// No direct access
	defined('_JEXEC') or die;
    jimport( 'joomla.application.component.view');
    class VolunteerViewAddsearchlocation extends JView
    {
		function display($tpl = null)
		{
			$model = $this->getModel('volunteer'); //get default model (volunteer)
			
			$this->assignRef( 'results', $model->searchLocation(JRequest::getVar('searchlocation')) );
			$this->assignRef( 'searchlocation', JRequest::getVar('searchlocation') );
			// $this->assignRef( 'industries', $model->getIndustries() );
									
			$app = JFactory::getApplication();
			$data = $app->getUserState('volunteer.addsearchlocation.form.data');
			$this->assignRef( 'newlocation', $data['newlocation']);
		
			parent::display($tpl); //display defaul template
		}
    }